//
//  UIButton+Extension.swift
//  SLQuickReader
//
//  Created by ALin on 2017/8/11.
//  Copyright © 2017年 ALin. All rights reserved.
//

import UIKit

extension UIButton
{
    func setBackgroundColor(normal: UIColor, selected: UIColor) {
        setBackgroundImage(UIImage.imageWithcolor(normal), for: .normal)
        setBackgroundImage(UIImage.imageWithcolor(selected), for: .selected)
        setBackgroundImage(UIImage.imageWithcolor(selected), for: .highlighted)
    }
}
